package com.pd.service;

import com.pd.pojo.Item;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SearchService {
    //Page 用来封装一页数据，里面是List<Item>
    //还封装了当前页号、最大页数、是否有下一页、上一页....
    Page<Item> search(String key, Pageable pageable);
}
